package com.example.mapper;

import com.example.entity.Goods;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author: 康伟奇
 * @date: 2023 - 11 - 13 11:36
 **/
@Mapper
public interface GoodsMapper {

     void insert(Goods goods);

     void deleteById(Integer id);

     void updateById(Goods goods);

     Goods selectById(Integer id);

     List<Goods> selectAll(Goods goods);


     @Delete("delete from goods where business_id = #{businessId}")
     void deleteByBusinessId(Integer businessId);
}
